<?php

$sock = socket_create(AF_INET , SOCK_DGRAM , SOL_UDP);

$str = "Hello";

socket_sendto($sock , $str , strlen($str) , 0 , "127.0.0.1" , 22022);

socket_close($sock);

?>
